/**
 * 
 */
package com.cchr.acms.dao;

import java.util.List;
import java.util.Map;

import com.cchr.acms.model.User;

/**
 * @author Fanxin Zeng
 *
 */
public interface UserDAO {
	
	/**
     * ������û�
     * @param user
     * @return
     */
    public int insertUser(User user);
    
    public int updateUser(User user);
    
    public int deleteUser(int id);
    
    public User getUserById(int id);
    
    public User getUserByUserName(String userName);
    
    public User getUserByEmail(String email);
    
    public List<User> queryUser(Map paramMap);
    
    public int queryUserCount(Map paramMap);

    public List<User> getAllUser();
    
    public List<User> getUserBychapterId(Long chapterId);
    
}
